import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//导入swiper插件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/swiper-bundle.css'
//导入移动端300ms延迟的问题
import fastClick from 'fastclick'
import './assets/styles/reset.css'
import './assets/styles/border.css'

//导入axios
import axios from 'axios'
//配置axios的全局根路径
axios.defaults.baseURL='http://localhost:8080/'
//把axios挂载到vue的原型对象上，这样所有的vue组件都可以使用axios
Vue.prototype.$http=axios

Vue.config.productionTip = false
//挂载移动端300ms的问题
fastClick.attach(document.body)
//全局挂载swiper
Vue.use(VueAwesomeSwiper)


//解决跨域问题


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
